<?php
abstract class Handler_Item extends RL_Handler
{
	/**
	 * Получить конкретный итем
	 *
	 * @return array
	 * @author Alexander Sibiryakov
	 **/
	public function getOneItem( $item_oid ) {
		if ($item_oid==null) {
			return array();
		}

		$this->rh->UseClass("AggregatedModel_Feed_FeedInterface");
		$this->rh->UseClass("AggregatedModel_Feed_ReaderItems");
		
		$rdr = new AggregatedModel_Feed_ReaderItems();
		$rdr->rh = $this->rh;
		$rdr->setModelParams("community_oid", $this->aa->acl_data['comity_oid']);
		$rdr->setModelParams("item_oid", $item_oid);
		$rdr->setModelParams("page_number", 1);
		$rdr->setModelParams("page_citems", 1);
		
		$rdr->doStuff();
		list($item) = $rdr->getItems();
		return $item;
		
	}
	
	
	

}
